package com.relytosoft.mizar.media.display.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 巡检通道
 *
 * @Author SunLi
 * @Date: 2022/4/11 18:43
 * @Version 1.0
 */
@TableName("VID_ROTAGROUP_CHANNEL")
@ApiModel("RotagroupChannel")
public class RotagroupChannel {

    private static final long serialVersionUID = 5004113952823678409L;

    /**
     * 分组ID
     */
    @ApiModelProperty(value = "分组ID")
    @TableField("ROTA_GROUP_ID")
    private Integer rotaGroupId;

    /**
     * 监控点/通道
     */
    @ApiModelProperty(value = "监控点/通道", required = true)
    @TableField("CHANNEL_ID")
    @NotNull(message = "监控点/通道不能为空")
    private Integer channelId;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序", required = true)
    @TableField("SORT")
    @NotNull(message = "排序不能为空")
    private Integer sort;

    /**
     * 通道名称
     */
    @ApiModelProperty(value = "通道名称")
    @TableField(exist = false)
    private String channelName;

    /**
     * 通道所属区域名称
     */
    @ApiModelProperty(value = "通道所属区域名称")
    @TableField(exist = false)
    private String districtName;
    /**
     * 获得分组ID
     */
    public Integer getRotaGroupId(){
        return this.rotaGroupId;
    }
    /**
     * 设置分组ID
     */
    public void setRotaGroupId(Integer rotaGroupId){
        this.rotaGroupId = rotaGroupId;
    }

    /**
     * 获得监控点/通道
     */
    public Integer getChannelId(){
        return this.channelId;
    }
    /**
     * 设置监控点/通道
     */
    public void setChannelId(Integer channelId){
        this.channelId = channelId;
    }

    /**
     * 获得排序
     */
    public Integer getSort(){
        return this.sort;
    }
    /**
     * 设置排序
     */
    public void setSort(Integer sort){
        this.sort = sort;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    @Override
    public String toString() {
        return "RotagroupChannel{" +
                "rotaGroupId=" + rotaGroupId +
                ", channelId=" + channelId +
                ", sort=" + sort +
                ", channelName='" + channelName + '\'' +
                ", districtName='" + districtName + '\'' +
                '}';
    }
}
